package cate.common.table.chat;

import cate.common.table.ESheet;
import easy.java.dev.note.NoteClass;

@NoteClass(value = "聊天频道基础")
public class ChatChannelSheet extends ESheet<ChatChannelRow> {

    @Override
    public String getSheetName() {
        return "聊天频道基础";
    }

    public int getItemMax(int channel) {
       ChatChannelRow row = this.get(channel);
        if (row == null) {
            return 30;
        } else {
            return row.itemMax;
        }
    }
}
